<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/main.css">
	
</head>
<body>
	<div class="wrapper">

		 <%@ include file="include/top.jsp" %>
	
		<div class="container workspace">
	
			<div class="page" id="page-team-show" data-page-name="所有项目">
	
				<h2>
					Hi ${sessionScope.curr_user.username }，这些是你的项目
				</h2>
				<div class="projects">
	                 <c:choose>
	                 	<c:when test="${empty sessionScope.projectList }">
	                 		<div class="project new">
								<a title="创建新项目" class="folder" 
								href="newProject.jspx" data-stack data-stack-root>
									<span class="badge"></span>
								</a>
							</div>
	                 	</c:when>
	                 	<c:otherwise>
	                	 	<div class="project">
		                 		<c:forEach items="${sessionScope.projectList }" var="bt" varStatus="vs">
									<a title="${bt.name }" href="project.jspx?id=${bt.id }"
										class="folder c2 i1" 
										data-stack data-stack-root data-restore-position>
										<span class="badge"></span>
									</a>
									<h6 class="name">
										<a title="${bt.name }" data-stack data-stack-root data-restore-position
											href="project.jspx?id=${bt.id }">${bt.name }</a>
									</h6>
									<p class="desc" title="${bt.description }">${bt.description }</p>
								</c:forEach>
	             	   		 </div>
							<div class="project new">
								<a title="创建新项目" class="folder" 
								href="newProject.jspx" data-stack data-stack-root>
									<span class="badge"></span>
								</a>
							</div>
	                 	
	                 	</c:otherwise>
	                 </c:choose>
					
				</div>
					
			</div>
		</div>
		
		<%@ include file="include/footer.jsp" %>
	</div>

	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){

			
		});
	</script>

</body>
</html>

